<?php

namespace App\Models\old;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Database\Eloquent\Model;
use Tymon\JWTAuth\Contracts\JWTSubject;

class OldDoctor extends Model   implements AuthenticatableContract, AuthorizableContract, JWTSubject
{
    use Authenticatable, \Illuminate\Foundation\Auth\Access\Authorizable;

    use HasDateTimeFormatter;
    protected $table = 'doctors';
    protected $connection = 'erbbmysql';
// 指定自定义主键名称
    protected $primaryKey = 'userid';

    // 如果主键不是自增的，需要设置为false
    public $incrementing = false;

    public function getJWTIdentifier()
    {
        return $this->userid;
    }
    public function getJWTCustomClaims()
    {
        return [];
    }

    public function getRememberTokenName()
    {
        return '';
    }
}
